﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Layouts/Administration.Master" Inherits="System.Web.Mvc.ViewPage<FacialClub.Models.ViewModels.CustomerViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.CustomerId) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.CustomerId)%>
                <%: Html.ValidationMessageFor(model => model.Customer.CustomerId)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.UserId)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.UserId)%>
                <%: Html.ValidationMessageFor(model => model.Customer.UserId)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.FirstName)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.FirstName)%>
                <%: Html.ValidationMessageFor(model => model.Customer.FirstName)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.LastName)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.LastName)%>
                <%: Html.ValidationMessageFor(model => model.Customer.LastName)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.BirthDate)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.BirthDate, String.Format("{0:g}", Model.Customer.BirthDate))%>
                <%: Html.ValidationMessageFor(model => model.Customer.BirthDate)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.Address)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.Address)%>
                <%: Html.ValidationMessageFor(model => model.Customer.Address)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.City)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.City)%>
                <%: Html.ValidationMessageFor(model => model.Customer.City)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.State)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.State)%>
                <%: Html.ValidationMessageFor(model => model.Customer.State)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.PostalCode)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.PostalCode)%>
                <%: Html.ValidationMessageFor(model => model.Customer.PostalCode)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.Country)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.Country)%>
                <%: Html.ValidationMessageFor(model => model.Customer.Country)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.Telephone)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.Telephone)%>
                <%: Html.ValidationMessageFor(model => model.Customer.Telephone)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.TelephoneExtension)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.TelephoneExtension)%>
                <%: Html.ValidationMessageFor(model => model.Customer.TelephoneExtension)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.Fax)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.Fax)%>
                <%: Html.ValidationMessageFor(model => model.Customer.Fax)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.FaxExtension)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.FaxExtension)%>
                <%: Html.ValidationMessageFor(model => model.Customer.FaxExtension)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.Email)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.Email)%>
                <%: Html.ValidationMessageFor(model => model.Customer.Email)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.URL)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.URL)%>
                <%: Html.ValidationMessageFor(model => model.Customer.URL)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.IsActive)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.IsActive)%>
                <%: Html.ValidationMessageFor(model => model.Customer.IsActive)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.UserCreated)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.UserCreated)%>
                <%: Html.ValidationMessageFor(model => model.Customer.UserCreated)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.CreatedDate)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.CreatedDate, String.Format("{0:g}", Model.Customer.CreatedDate))%>
                <%: Html.ValidationMessageFor(model => model.Customer.CreatedDate)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.UserModified)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.UserModified)%>
                <%: Html.ValidationMessageFor(model => model.Customer.UserModified)%>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Customer.ModifiedDate)%>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Customer.ModifiedDate, String.Format("{0:g}", Model.Customer.ModifiedDate))%>
                <%: Html.ValidationMessageFor(model => model.Customer.ModifiedDate)%>
            </div>
            
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

